package com.ruoyi.eqmonitor.mapper;

import com.ruoyi.common.datasource.annotation.Pipe;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Pipe
public interface PipeMapper {

    String getTableNameByCode(@Param("code") String code);

    List<Map<String, Object>> getPipeLineJsonByCode(@Param("tableName") String tableName, @Param("type") String type);

    Map<String, Object> getPipePointJsonByWtdh(@Param("tableName") String tableName, @Param("pipeWtdh") String pipeWtdh);

    List<Map<String, Object>> getPipeLineJsonByWtdh(@Param("tableName") String tableName, @Param("pipeWtdh") String pipeWtdh);

    Map<String, Object> getPipeLineJsonByQddhAndZddh(@Param("tableName") String tableName, @Param("qddh") String qddh, @Param("zddh") String zddh);
}
